﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FFS.Model;
using FFS.BLL;

namespace FFS
{
    public partial class frmLeavingSystem : Form
    {
        public frmLeavingSystem()
        {
            InitializeComponent();
        }

        private void frmLeavingSystem_Load(object sender, EventArgs e)
        {
            this.lbl_pwdError.Text = "";
            this.txt_LoginUserName.Text = Context._Login_UserName;
        }

        private void btn_EnterSystem_Click(object sender, EventArgs e)
        {
            LoginUserService lus = new LoginUserService();
            if (lus.ManageLoginUser().VerifyLogin(this.txt_LoginUserName.Text.Trim(), this.txt_LoginUserPassword.Text))
            {
                this.lbl_pwdError.Text = "";
                this.Close();
            }
            else
            {
                this.lbl_pwdError.Text = "密码错误！";
            }
        }
    }
}
